home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 37 / Amiga Format CD37 (1999-02-16)(Future Publishing)(GB)(Track 1 of 3)[!][issue 1999-03].iso / -screenplay- / hd_installers / brian / install-brian < prev    next >
Text File  |  1999-01-09  |  2KB  |  78 lines

  1. (set #CI_UNIT 0)
  2. (set #CI_DRIVE ("DF%ld:" #CI_UNIT))
  3.  
  4. ;----------------------------
  5.  
  6. ;try to figure out a place where the user usually installs his games
  7. (if (exists "Games:" (noreq) )
  8.     (set @default-dest "Games:")
  9.     (if (exists "SYS:Games" (noreq) )
  10.     (set @default-dest "SYS:Games")
  11.     (if (exists "Work:Games" (noreq) )
  12.         (set @default-dest "Work:Games")
  13.         (if (exists "JEUX:" (noreq) )
  14.            (set @default-dest "JEUX:")
  15.            (set @default-dest "SYS:")
  16.         )
  17.     )
  18.     )
  19. )
  20.  
  21.  
  22. (set @default-dest
  23. (askdir
  24.     (prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
  25.     (help @askdir-help)
  26.     (default @default-dest)
  27.     (disk)
  28. )
  29. )
  30.  
  31. (set #dest (tackon @default-dest @app-name))
  32.  
  33.  
  34. (makedir #dest
  35.     (help @makedir-help)
  36.     (infos)
  37. )
  38.  
  39. ;----------------------------
  40.  
  41. (copyfiles
  42.     (help @copyfiles-help)
  43.     (source "BrianHD")
  44.     (dest #dest)
  45.     (infos)
  46. )
  47.  
  48. (copyfiles
  49.     (help @copyfiles-help)
  50.     (source "BrianHD.readme")
  51.     (dest #dest)
  52.     (infos)
  53. )
  54.  
  55. (message ("\nInsert Brian the Lion disk 1 into drive %ld !" #CI_UNIT))
  56.     (if
  57.         (= 0 (run ("Diskripper %s \"%s/Brian.d1\" >CON:///1000//CLOSE/WAIT" #CI_DRIVE #dest)))
  58.         ("")
  59.         (abort "\"DiskRipper\" must be in your PATH !")
  60.     )
  61.  
  62. (message ("\nInsert Brian the Lion disk 2 into drive %ld !" #CI_UNIT))
  63.     (if
  64.         (= 0 (run ("Diskripper %s \"%s/Brian.d2\" >CON:///1000//CLOSE/WAIT" #CI_DRIVE #dest)))
  65.         ("")
  66.         (abort "\"DiskRipper\" must be in your PATH !")
  67.     )
  68.  
  69. (message ("\nInsert Brian the Lion disk 3 into drive %ld !" #CI_UNIT))
  70.     (if
  71.         (= 0 (run ("Diskripper %s \"%s/Brian.d3\" >CON:///1000//CLOSE/WAIT" #CI_DRIVE #dest)))
  72.         ("")
  73.         (abort "\"DiskRipper\" must be in your PATH !")
  74.     )
  75.  
  76. (exit)
  77.  
  78.